#include "StdAfx.h"
#include "SystemTest.h"
#include <cppunit/config/SourcePrefix.h>
#include "../CodeLib/System/SystemHelper.cpp"

CPPUNIT_TEST_SUITE_REGISTRATION( CSystemTest );
CSystemTest::CSystemTest( void )
{
}


CSystemTest::~CSystemTest( void )
{
}


void CSystemTest::setUp()
{

}

void CSystemTest::tearDown()
{

}

void CSystemTest::GetVersion()
{
    TCHAR sVerInfo[MAX_PATH] = {0};
    BOOL bRet = CODEHELPER::CSystemHelper::GetVersion( _T( "C:\\Users\\redcode\\AppData\\Roaming\\360bizhi\\360wpapp.exe" ), sVerInfo, MAX_PATH, VER_FILE );
    CPPUNIT_ASSERT( bRet );
    CPPUNIT_ASSERT( 0 == ( _tcscmp( sVerInfo, _T( "2.0.0.1076" ) ) ) );
}

